package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Description ContractJob
 * @Author Juss
 * @Date 2025-02-21  20:01
 */
@Component("contractJob")
public class ContractJob {
    @Autowired
    private IContractService contractService;

    public void updateContractStatusJob()
    {
        contractService.updateContractStatus();
        System.out.println("更新合同状态");
    }
}
